<#assign EntityMapperUtils = statics["top.cardone.generator.code.util.EntityMapperUtils"]>
UPDATE ${entityMapper.tableName} SET END_DATE = NOW(), DATA_STATE_CODE = '0' WHERE INSTR(:${(businessCode?uncap_first)!''}Ids, ${EntityMapperUtils.getPKS(entityMapper)!'ID'}) > 0